﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucNewMenu.ascx.cs" Inherits="TTMarketing.UserControl.Tin_tuc.ucNewMenu" %>
<asp:ObjectDataSource ID="odsNewMenu" runat="server" SelectMethod="News_getByTop"
    TypeName="TTController.clsBusiness">
    <SelectParameters>
        <asp:Parameter DefaultValue="5" Name="top" Type="Int32" />
        <asp:Parameter DefaultValue="true" Name="status" Type="Boolean" />
    </SelectParameters>
</asp:ObjectDataSource>
<asp:DataList ID="DataList1" runat="server" DataSourceID="odsNewMenu" HorizontalAlign="Center"
    Width="95%">
    <ItemTemplate>
        <table border="0" cellpadding="0" cellspacing="0" width="90%" align="center">
            <tbody>
                <tr>
                    <td align="left" width="50px" valign="top">
                        <a href='tin-tuc.aspx?id=<%# Eval("ID") %>' title='<%# Eval("Title") %>'>
                            <img src='<%# "Image/Upload/" + Eval("Image") %>' width="48px" height="48px" style="float: left;
                                margin: 4px;"></a>
                    </td>
                    <td align="left" valign="top" style="padding-top: 10px">
                        <a href='tin-tuc.aspx?id=<%# Eval("ID") %>' title='<%# Eval("Title") %>' class="latestnews">
                            <%# Eval("Title") %></a>
                    </td>
                </tr>
            </tbody>
        </table>
    </ItemTemplate>
</asp:DataList>
